/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package org.mybatis.model;

import java.awt.Component;
import javax.swing.JCheckBox;
import javax.swing.JList;
import javax.swing.ListCellRenderer;

/**
 *
 * @author ProjetGWTPhp
 */
public class CheckListRenderer extends JCheckBox implements ListCellRenderer {
    
    @Override
    public Component getListCellRendererComponent(JList list, Object value,
               int index, boolean isSelected, boolean hasFocus) {
        CheckItem check = (CheckItem) value;
        
       
        setText(check.getAttr().getNombre() +"="+check.getAttr().getValor());
        setSelected(check.isSelected());
        
		return this;
    }
    
}
